package com.example.Controller;



import com.example.dao.TypeNameMapper;
import com.example.pojo.TypeName;
import com.example.util.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "假期管理")
@CrossOrigin
@RestController
public class TypeNameController {
    @Autowired
    private TypeNameMapper typeNameMapper;

    @RequestMapping("/selectTypeName")//添加请假
    public Result selectSelfDe(){
        List<TypeName> typeNames = typeNameMapper.selectList(null);
        return new Result("200","查询成功",typeNames);
    }
}